package local.blueheart.data.jxmobilemigrate.util;

import lotus.domino.Base;
import lotus.domino.NotesException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class NotesUtil {

    private static final Logger LOGGER = LoggerFactory.getLogger(NotesUtil.class);

    /**
     * recycle掉指定的对象
     * @param base
     * @return
     */
    public static boolean recycle(Base base){
        try {
            base.recycle();
            return true;
        } catch (NotesException e) {
            LOGGER.error(" notes base recycle failure",e);
            return false;
        }
    }

}
